﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using BWAP.Filters;
using BLL;
using Model;
using Tools;
namespace BWAP.Controllers
{
    public class ManageHomeController : Controller
    {
        //
        // GET: /ManageHome/
        [CheckLogin]
        public ActionResult Index()
        {
            Admin admin = (Admin)Session["User"];
            ViewBag.PermissionList = ManageLoginBLL.PermissionList(admin.ID);
            Session["PermissionList"] = ManageLoginBLL.PermissionList(admin.ID);
            return View();
        }

    }
}
